package com.yifeng.repo.controller.statemachine.fsm.audit.worker.condition;

import com.alibaba.cola.statemachine.Condition;
import com.yifeng.repo.controller.statemachine.fsm.audit.biz.AuditContext;
import lombok.extern.slf4j.Slf4j;

/**
 * Created by daibing on 2024/9/20.
 */
@Slf4j
public class AuditPassCondition implements Condition<AuditContext> {

    @Override
    public boolean isSatisfied(AuditContext context) {
        log.info("passCondition from {}, on event {}, id:{}", context.getSourceState(), context.getEvent(), context.getId());
        return true;
    }
}
